﻿// HSS.Interlink.ErrorEventArgs.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2010
// ----------------------------------------------------------------------------
// File:       ErrorEventArgs.cs
// Author:     HSS\gbanta
// Created:    07/16/2011
// Modified:   07/22/2011
// ----------------------------------------------------------------------------
namespace HSS.Interlink
{
	#region Using Directives
	using System;
	#endregion

	#region ErrorEventArgs
	/// <summary>
	/// ErrorEventArgs contains the exception for a given process
	/// </summary>
	public sealed class ErrorEventArgs : EventArgs
	{
		#region Constructor
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="lastException"></param>
		public ErrorEventArgs(Exception lastException)
		{
			_lastException = lastException;
		}
		#endregion

		#region Properties
		/// <summary>
		/// Gets the last exception
		/// </summary>
		public Exception LastException
		{
			get { return _lastException; }
		} Exception _lastException;
		#endregion
	}
	#endregion
}